import request from '@/utils/request'

// 查询用户酒店订单列表
export function listUserhotelbookings(query) {
  return request({
    url: '/business/userhotelbookings/list',
    method: 'get',
    params: query
  })
}

// 查询用户酒店订单详细
export function getUserhotelbookings(userHotelBookingId) {
  return request({
    url: '/business/userhotelbookings/' + userHotelBookingId,
    method: 'get'
  })
}

// 新增用户酒店订单
export function addUserhotelbookings(data) {
  return request({
    url: '/business/userhotelbookings',
    method: 'post',
    data: data
  })
}

// 修改用户酒店订单
export function updateUserhotelbookings(data) {
  return request({
    url: '/business/userhotelbookings',
    method: 'put',
    data: data
  })
}

// 删除用户酒店订单
export function delUserhotelbookings(userHotelBookingId) {
  return request({
    url: '/business/userhotelbookings/' + userHotelBookingId,
    method: 'delete'
  })
}
